﻿IF EXISTS (SELECT * FROM sysobjects WHERE type = 'P' AND name = 'GetPermisosByUsuario')
	BEGIN
		DROP  Procedure  GetPermisosByUsuario
	END

GO

CREATE Procedure GetPermisosByUsuario

	(
		@idEmplerado smallint
	)

AS

BEGIN
	SET NOCOUNT ON
	
	SELECT
	[Estado],
	[IdEmpleado],
	[IdFormulario],
	[TipoPermiso]
	FROM [Permiso] 
	WHERE [IdEmpleado] = @idEmplerado

	SET NOCOUNT OFF
END

GO


GRANT EXEC ON GetPermisosByUsuario TO PUBLIC

GO


